package com.yida.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yida.bean.blog;
import com.yida.service.serverblog;

@Controller
public class log {
	@Autowired
	public serverblog service;

	@RequestMapping("/log")
	public String index(Model mode) {
	  //查询日志
	    List<com.yida.bean.log> log = service.selectlogservice(1);
	   
	    mode.addAttribute("loglist", log);
	    
		return "log";
	}
	
	
}
